package com.zmm.common.valid.annotation;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

/**
 * @author 900045
 * @description:
 * @name IdentityCardNumberValidator
 * @date By 2021-07-07 09:24:56
 */
public class IdentityCardNumberValidator implements ConstraintValidator<IdentityCardNumber,Object> {


	@Override
	public boolean isValid(Object value, ConstraintValidatorContext context) {
		return IdCardValidatorUtils.isValidatedAllIdCard(value.toString());
	}

	@Override
	public void initialize(IdentityCardNumber constraintAnnotation) {
		
	}
}
